<template>
  <el-container>
  <el-header>注册界面</el-header>
  <el-main>
    <el-form status-icon label-width="70px" class="demo-ruleForm">
      <el-form-item label="昵称" prop="username">
        <el-input v-model="users.username"></el-input>
      </el-form-item>
      <el-form-item label="帐号" prop="userid">
        <el-input v-model="users.userid" id="userid"></el-input>
        <el-button type="text" >账号查重</el-button>
      </el-form-item>
      <el-form-item label="密码" prop="password">
        <el-input type="password" v-model="users.password" autocomplete="off"></el-input>
      </el-form-item>
      <el-form-item label="确认密码" prop="password2">
        <el-input type="password" v-model="users.password2"></el-input>
      </el-form-item>
      <el-form-item label="邮箱" prop="email">
        <el-input v-model="users.email"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="register">注册</el-button>
      </el-form-item>
    </el-form>
  </el-main>
</el-container>
</template>

<script>
export default {
    data() {
      return {
        users: {
          userid: '',
          password: '',
          password2: '',
          username:'',
          email:''
        }
    }
  },
    methods: {
      register(){
        this.$router.push({path:'/Login'});
      },
      
    }
}
</script>

<style>
  *{padding: 0;margin: 0;}
  .el-header{
    text-align: center;
  }
  .el-main{
    text-align: center;
  }
</style>